package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.NeirongMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Author: 凉笙℡墨染
 * CreateTime: 2024-09-29
 * 内容
 */

@Component
public class NeirongMapperimp {
    @Resource
    private NeirongMapper neirongMapper;
    public String get_list() {
        System.out.println("看看内容数据返回的什么数据"+neirongMapper.get_list());
        JSONObject json = new JSONObject();
        json.put("data", neirongMapper.get_list());
        System.out.println("内容转换后的json数据是"+json.toString());
        return json.toString();
    }
}
